package com.yypinger.gxonline.view;

import com.vaadin.ui.Component;

/**
 * table item选择通知
 * @author qinfuji
 *
 */
public interface OrderListItemChanagerListener {

	/**
	 * 
	 */
	public void itemChange(OrderListItemChangeEvent event);
	
	
	public class OrderListItemChangeEvent extends Component.Event{

		private static final long serialVersionUID = 6579994968934690018L;

		//数据的id
		private Long id;
		/**
		 * 订单列表选择
		 * @param source 组件源
		 * @param id  选择的数据的id
		 */
		public OrderListItemChangeEvent(Component source , Long id) {
			super(source);
			this.id = id;
		}
		
		/**
		 * 得到数据id
		 * @return
		 */
		public Long getItemId(){
			return this.id;
		}
		
	}
}
